package com.gengealogy.net.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.dao.DataAccessException;

import com.gengealogy.net.po.User;


public interface UserDao {

	//@Select("select * from t_user where username=#{username} and passowrd=#{password}")
	User findUser(@Param("username")String username,@Param("password") String password);

	int register(User user);

	public User getUserById(int user_id);
	
	public int getUserByName(String username);
	
	public List<User> getUser();
	
	public int updateUser(User user);
	  
	  public int userUpdate(User user);

	public int deleteUser(int user_id);

	
	
	
	
	
}
